package com.yonyou.iuap.corp.demo.yonbip.transtype;

import com.yonyou.iuap.corp.demo.yonbip.OpenBaseTest;

import java.util.HashMap;
import java.util.Map;

/**
 * @author nishch
 * @version 1.0
 * @date 2020/3/11
 * @des  交易类型测试类
 */
public class TranstypeTestOpen extends OpenBaseTest {

    /**
     * 获取交易类型树
     */
    @Override
    public void tree() throws Exception {
        String url = "https://api.diwork.com/yonbip/digitalModel/transtype/tree";
        baseApi.doPost(url,null);
    }

    /**
     * 获取交易类型列表
     */
    @Override
    public void list() throws Exception {
        String url = "https://api.diwork.com/yonbip/digitalModel/transtype/list";
        Map<String, Object> params  = new HashMap<String, Object>();
        params.put("path","HRJQ1");
        baseApi.doPost(url,paramsPage(params));
    }

    /**
     * 获取交易类型详情
     */
    @Override
    public void detail() throws Exception {
        String url = "https://api.diwork.com/yonbip/digitalModel/transtype/detail";
        Map<String, Object> params  = new HashMap<String, Object>();
        params.put("id","2142654852010240");
        baseApi.doGet(url,params);
    }

    @Override
    public void save() {

    }

}
